package com.miyu.system.utils.crawler.book;

import com.miyu.system.pojo.crawler.BookPageVo;

import java.util.concurrent.Callable;

/**
 * @author longm
 * book解析使用线程解析
 * @date 2024/12/03
 */
public class BookTaskThread implements Callable<BookPageVo> {

    private final BookPageVo bpv;
    /**
     * 叫
     *
     * @return {@link BookPageVo }
     * @throws Exception 例外
     */
    @Override
    public BookPageVo call() throws Exception {
        BookPage.bookSpider(bpv);
        return bpv;
    }

    public  BookTaskThread(BookPageVo bpv){
        this.bpv=bpv;
    }

}
